package com.yanqu.road.entity.enums;

public enum eALiPayTaskType {
    UPGRADE_TASK(10,"jwdzg_game_upgrade_5", "门客升级任务", false),
    RECRUIT_STAFF_COUNT_TASK(2,"jwdzg_game_zhaomu_20", "支付宝五福-招募员工数量", false),
    HOUSE_CLICK__TIMES_TASK(11,"jwdzg_game_qianzhuang_15", "支付宝五福-钱庄点击次数", false),
    BEAUTY_REWARD_TIMES_TASK(31,"jwdzg_game_zengsong_3", "支付宝五福-美女赏赐次数", false),
    PASS_BATTLE_SUCCESS_TIMES_TASK(35,"jwdzg_game_maoyi_1", "支付宝五福-关卡谈判成功次数", false),
    ZFB_ACTIVE_TASK(338,"jwdzg_game_huoyue_50", "支付宝五福-活跃度", false),
    UPGRADE_TASK_NEW(340,"jwdzg_game_shengji_5_guafen", "门客升级任务-瓜分活动", true),
    ;

    private int type;

    private String taskSign;

    private String des;

    private boolean extend;

    eALiPayTaskType(int value, String taskSign, String des, boolean extend) {
        this.type = value;
        this.taskSign = taskSign;
        this.des = des;
        this.extend = extend;
    }

    public int getType() {
        return type;
    }

    public String getTaskSign() {
        return taskSign;
    }

    public static String getTaskSignByType(int type){
        for(eALiPayTaskType data:values()){
            if(data.getType() == type){
                return data.getTaskSign();
            }
        }
        return "";
    }

    public static eALiPayTaskType geteALiPayTaskTypeByType(int type){
        for(eALiPayTaskType data:values()){
            if(data.getType() == type){
                return data;
            }
        }
        return null;
    }

    public boolean isExtend() {
        return extend;
    }
}
